home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
355
/
source
/
ifsdemo
/
gemprocs.def
< prev
next >
Wrap
Text File
|
1990-02-02
|
2KB
|
62 lines
DEFINITION MODULE GEMProcs;
(* Several handy GEM procedures, primarily initialization and termination
routines. Also includes several other useful things. Michael A. Long,
1/8/88 *)
FROM SYSTEM IMPORT ADDRESS;
FROM GEMTypes IMPORT GRECT;
TYPE GEMRec = RECORD
apid : INTEGER; (* application id *)
handle : INTEGER; (* VDI handle *)
hchar : INTEGER; (* character height *)
wchar : INTEGER; (* character width *)
hbox : INTEGER; (* character cell height *)
wbox : INTEGER; (* character cell width *)
level : INTEGER; (* initialization level completed *)
rez : INTEGER; (* screen resolution *)
xmax : INTEGER; (* max x screen coordinate *)
ymax : INTEGER; (* max y screen coordinate *)
iscolor : BOOLEAN; (* color screen? *)
mhidden : BOOLEAN; (* mouse hidden? *)
hasrsc : BOOLEAN; (* resource loaded? *)
END;
VAR GEMState : GEMRec;
PROCEDURE GEMInit(rscname : ADDRESS) : BOOLEAN;
(* Initializes a GEM application. If rscname is not NIL, the resource will
be loaded as well. *)
PROCEDURE GEMTerm();
(* Terminates a GEM application. *)
PROCEDURE HideMouse();
(* Hide the mouse if it is not already hidden *)
PROCEDURE ShowMouse();
(* Show the mouse if it is not already showing *)
PROCEDURE RectIntersect(rect1 : GRECT;
VAR rect2 : GRECT) : BOOLEAN;
(* Calculate the intersection of two rectangles. Returns TRUE if the
rectangles intersect. *)
PROCEDURE DoDialog(boxindex : INTEGER);
(* Show a simple dialog box *)
PROCEDURE AddrToInts(addr : ADDRESS;
VAR i1,i2 : INTEGER);
(* Converts an address to two integers *)
END GEMProcs.